<?php

class Upload_modelo extends CI_Model{
	
	var $path='';
		var $idDef='';
		
	
	
function __construct()
{
parent::__construct();


}

function insertar($path,$idDef){
	
	//$this->path = $this->input->post('userfile');
	$this->path = $path;
	$this->idDef=$idDef;
	
	$this->db->insert('uploads',$this);
	
	return $this->path;
}

function insertarU($path,$idUsu){
	

	
	//$this->path = $this->input->post('userfile');
	$data['path'] = $path;
	$data['idUsu']=$idUsu;
	
	
	$this->db->insert('uploadsu',$data);
	
	return $this->path;
}
	
	
	
}



?>